home *** CD-ROM | disk | FTP | other *** search
/ Amiga Developer CD 2.1 / Amiga Developer CD v2.1.iso / Reference / DevCon / Orlando_1993 / Devcon93.4 / CAMD / include / midi / realtimebase.i < prev   
Encoding:
Text File  |  1992-10-08  |  1.5 KB  |  50 lines

  1.     ifnd    MIDI_REALTIMEBASE_I
  2. MIDI_REALTIMEBASE_I set 1
  3.  
  4. *************************************************************************
  5. *     RealTime Library (timing & syncing system)                        *
  6. *************************************************************************
  7. *                                                                       *
  8. * Design & Development  - Talin & Joe Pearce                            *
  9. *                                                                       *
  10. * Copyright 1992 by Commodore Business Machines                         *
  11. *                                                                       *
  12. *************************************************************************
  13. *
  14. * realtimebase.i - RealTime library base structure
  15. *
  16. *************************************************************************
  17.  
  18.     ifnd    EXEC_LIBRARIES_I
  19.     include "exec/libraries.i"
  20.     endc
  21.  
  22.     ifnd    EXEC_LISTS_I
  23.     include "exec/lists.i"
  24.     endc
  25.  
  26.     ifnd    EXEC_SEMAPHORES_I
  27.     include "exec/semaphores.i"
  28.     endc
  29.  
  30.  
  31.     STRUCTURE RealTimeBase,LIB_SIZE
  32.     UWORD    rt_pad0
  33.  
  34.     ULONG    rt_Time                ; current time
  35.     ULONG    rt_TimeDelta           ; time delta
  36.     WORD    rt_TickFreq        ; ideal RealTime Tick frequency
  37.     WORD    rt_TickErr        ; nanosecond error from ideal Tick length to real tick length
  38.                     ; actual tick length is:  1/TickFreq + TickErr/1e9
  39.                     ; -705 < TickErr < 705
  40.  
  41.     ; private stuff below here
  42.  
  43.     LABEL    RealTimeBase_PublicSize
  44.  
  45.  
  46. RealTime_TickErr_Min    equ     -705
  47. RealTime_TickErr_Max    equ     705
  48.  
  49.     endc
  50.